package com.sky.mapper;

import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.Orders;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderMapper {
    void insert(Orders order);

    List<Orders> list(Orders orders);

    void update(Orders orders1);

    List<Orders> pageList(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistics();

    Orders getByNumberAndUserId(String outTradeNo, Long userId);

    List<Orders> getByTimeLTAndStatusAndUserId(LocalDateTime time, Integer status);

    Orders getById(Long id);
}
